import { Component } from '@angular/core';
import { HttpService } from './http.service';
@Component({
  selector: 'app-root',
  templateUrl: 'app.component.html',
  styleUrls: ['app.component.scss'],
})
export class AppComponent {
  appPages = [
    { title: '首页', url: '/home', icon: 'home' },
    { title: '连接', url: '/conns', icon: 'link' },
    { title: '用户', url: '/users', icon: 'people' },
  ];
  labels = [
    'SQL审核',
    'WEB界面管理',
    '操作日志记录',
    '钉钉审批',
    '多种管理工具支持',
  ];
  constructor(private http: HttpService) {}

  async logout() {
    await this.http.logout();
  }
}
